﻿using System;
using System.Collections.Generic;
using System.Text;

namespace sqxt
{
    class Dbconnect
    {
        //public static string s1 = "server=222.16.73.191;database=sqxt;uid=sa;pwd=123;";
       
       #region 连接字符串
       SqlConnectionStringBuilder scb = new SqlConnectionStringBuilder();
       scb.DataSource = @".\SQLEXPRESS";
      scb.AttachDBFilename = System.Environment.CurrentDirectory + @"\sqxt.mdf";//"D:\\qq文件\\276728732\\FileRecv\\lipiao\\fenye\\fenye\\bin\\Debug\\sqxt.mdf";
       scb.AttachDBFilename = Application.StartupPath+"\\sqxt.mdf";
       scb.IntegratedSecurity = true;
       scb.UserInstance = true;
       return scb.ConnectionString;
    }
}
